Socket
Socket
Sign inDemoInstall

@smithy/credential-provider-imds

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/credential-provider-imds

AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service


Version published
Weekly downloads
13M
increased by4.06%
Maintainers
2
Weekly downloads
 
Created

What is @smithy/credential-provider-imds?

The @smithy/credential-provider-imds package is designed to retrieve AWS credentials from the EC2 Instance Metadata Service (IMDS). It allows applications running on EC2 instances to securely obtain temporary credentials without needing to hard-code them. This is particularly useful for managing access to AWS services in a secure and scalable way.

What are @smithy/credential-provider-imds's main functionalities?

Fetching credentials from IMDS

This feature allows the retrieval of AWS credentials from the EC2 Instance Metadata Service. The provided code sample demonstrates how to asynchronously fetch these credentials using the fromInstanceMetadata function.

const { fromInstanceMetadata } = require('@smithy/credential-provider-imds');

async function getCredentials() {
  const credentials = await fromInstanceMetadata();
  return credentials;
}

Other packages similar to @smithy/credential-provider-imds

Keywords

FAQs

Package last updated on 13 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc